3.2.75 \(\int \frac {1}{x (a+b x)^2} \, dx\) [175]

Optimal. Leaf size=29 \[ \frac {1}{a (a+b x)}+\frac {\log (x)}{a^2}-\frac {\log (a+b x)}{a^2} \]

[Out]

1/a/(b*x+a)+ln(x)/a^2-ln(b*x+a)/a^2

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {46} \begin {gather*} -\frac {\log (a+b x)}{a^2}+\frac {\log (x)}{a^2}+\frac {1}{a (a+b x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(x*(a + b*x)^2),x]

[Out]

1/(a*(a + b*x)) + Log[x]/a^2 - Log[a + b*x]/a^2

Rule 46

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x
)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && Lt
Q[m + n + 2, 0])

Rubi steps

\begin {align*} \int \frac {1}{x (a+b x)^2} \, dx &=\int \left (\frac {1}{a^2 x}-\frac {b}{a (a+b x)^2}-\frac {b}{a^2 (a+b x)}\right ) \, dx\\ &=\frac {1}{a (a+b x)}+\frac {\log (x)}{a^2}-\frac {\log (a+b x)}{a^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 24, normalized size = 0.83 \begin {gather*} \frac {\frac {a}{a+b x}+\log (x)-\log (a+b x)}{a^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(x*(a + b*x)^2),x]

[Out]

(a/(a + b*x) + Log[x] - Log[a + b*x])/a^2

________________________________________________________________________________________

Mathics [A]
time = 1.92, size = 34, normalized size = 1.17 \begin {gather*} \frac {a+\left (a+b x\right ) \left (\text {Log}\left [x\right ]-\text {Log}\left [\frac {a+b x}{b}\right ]\right )}{a^2 \left (a+b x\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

mathics('Integrate[1/(x^1*(a + b*x)^2),x]')

[Out]

(a + (a + b x) (Log[x] - Log[(a + b x) / b])) / (a ^ 2 (a + b x))

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 30, normalized size = 1.03

method result size
default \(\frac {1}{a \left (b x +a \right )}+\frac {\ln \left (x \right )}{a^{2}}-\frac {\ln \left (b x +a \right )}{a^{2}}\) \(30\)
risch \(\frac {1}{a \left (b x +a \right )}+\frac {\ln \left (-x \right )}{a^{2}}-\frac {\ln \left (b x +a \right )}{a^{2}}\) \(32\)
norman \(-\frac {b x}{a^{2} \left (b x +a \right )}+\frac {\ln \left (x \right )}{a^{2}}-\frac {\ln \left (b x +a \right )}{a^{2}}\) \(33\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x/(b*x+a)^2,x,method=_RETURNVERBOSE)

[Out]

1/a/(b*x+a)+ln(x)/a^2-ln(b*x+a)/a^2

________________________________________________________________________________________

Maxima [A]
time = 0.25, size = 28, normalized size = 0.97 \begin {gather*} \frac {1}{a b x + a^{2}} - \frac {\log \left (b x + a\right )}{a^{2}} + \frac {\log \left (x\right )}{a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(b*x+a)^2,x, algorithm="maxima")

[Out]

1/(a*b*x + a^2) - log(b*x + a)/a^2 + log(x)/a^2

________________________________________________________________________________________

Fricas [A]
time = 0.32, size = 39, normalized size = 1.34 \begin {gather*} -\frac {{\left (b x + a\right )} \log \left (b x + a\right ) - {\left (b x + a\right )} \log \left (x\right ) - a}{a^{2} b x + a^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(b*x+a)^2,x, algorithm="fricas")

[Out]

-((b*x + a)*log(b*x + a) - (b*x + a)*log(x) - a)/(a^2*b*x + a^3)

________________________________________________________________________________________

Sympy [A]
time = 0.11, size = 22, normalized size = 0.76 \begin {gather*} \frac {1}{a^{2} + a b x} + \frac {\log {\left (x \right )} - \log {\left (\frac {a}{b} + x \right )}}{a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(b*x+a)**2,x)

[Out]

1/(a**2 + a*b*x) + (log(x) - log(a/b + x))/a**2

________________________________________________________________________________________

Giac [A]
time = 0.00, size = 37, normalized size = 1.28 \begin {gather*} \frac {\ln \left |x\right |}{a^{2}}-\frac {b \ln \left |x b+a\right |}{b a^{2}}+\frac {a}{a^{2} \left (x b+a\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(b*x+a)^2,x)

[Out]

-log(abs(b*x + a))/a^2 + log(abs(x))/a^2 + 1/((b*x + a)*a)

________________________________________________________________________________________

Mupad [B]
time = 0.12, size = 26, normalized size = 0.90 \begin {gather*} \frac {1}{a^2+b\,x\,a}-\frac {\ln \left (\frac {a+b\,x}{x}\right )}{a^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x*(a + b*x)^2),x)

[Out]

1/(a^2 + a*b*x) - log((a + b*x)/x)/a^2

________________________________________________________________________________________